import { FC, useEffect, useState } from 'react';
import './index.less';
import { greet } from ':/api/test';

const Home: FC = () => {
  const [res, setRes] = useState('');
  useEffect(() => {
    greet().then((res) => {
      setRes(res);
    });
  }, []);
  return (
    <div className='home-page'>
      Call rust res: {res}
    </div>
  );
};

export default Home;